0 in [1, 2] == true, why?

Posted by Felix on Stack Overflow See other posts from Stack Overflow or by Felix
Published on 2010-03-08T13:45:17Z Indexed on 2010/03/08 13:51 UTC
Read the original article Hit count: 131

Filed under:

Excerpt from my JavaScript console:

> 0 in [1, 2]
true

Why?

© Stack Overflow or respective owner

Related posts about JavaScript